﻿@using GdHotel.Data
@model CustomPage

<div class="editor-label">
    @Html.LabelFor(model => model.Key)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Key)
    @Html.ValidationMessageFor(model => model.Key)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Title)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Title)
    @Html.ValidationMessageFor(model => model.Title)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Text)
</div>
<div class="editor-field wysiwyg">
    @Html.EditorFor(model => model.Text)
    @Html.ValidationMessageFor(model => model.Text)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Publish)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Publish)
    @Html.ValidationMessageFor(model => model.Publish)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.StandaloneName)
</div>
<div class="editor-label">
    Имя страницы для использования в виде ссылки. Имя не должно содержать пробелов. К примеру: about-our-staff. Тогда страницу можно будет 
    вызвать по адресу gdhotel.kg/Show/about-our-staff
<div>
<div class="editor-field">
    @Html.EditorFor(model => model.StandaloneName)
    @Html.ValidationMessageFor(model => model.StandaloneName)
</div>
